﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Xml.Serialization;

namespace Altairis.OtpAuth.Core {


    [XmlInclude(typeof(OtpToken))]
    [XmlInclude(typeof(EventOtpToken))]
    [XmlInclude(typeof(TimeOtpToken))]
    [XmlRoot(ElementName = "tokenCollection", Namespace = XmlNs.SERIALIZATION_NS_URL)]
    public class TokenCollection : KeyedCollection<Guid, OtpToken> {

        protected override Guid GetKeyForItem(OtpToken item) {
            return item.TokenId;
        }



    }
}
